package com.itcanteen.medical;

import com.itcanteen.medical.patient.util.IdWorker;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * @author baimugudu
 * @email 2415621370@qq.com
 * @date 2020/12/10 15:33
 */


@SpringBootApplication
@EnableEurekaClient
@MapperScan(basePackages = "com.itcanteen.medical.patient.mapper")
@ComponentScan(basePackages ="com.itcanteen.medical.patient")
public class PatientApplication {

    public static void main(String[] args) {
        SpringApplication.run(PatientApplication.class, args);
    }

    @Bean
    public IdWorker idWorker(){
        return new IdWorker();
    }

}
